package com.cuckoo.cuckoo_app2.config;

import com.cuckoo.cuckoo_app2.BuildConfig;

/**
 * API 配置文件
 */
public class ApiConfig {
    public String API_URL;
    public String API_PREFIX;
    public String TOKEN_KEY;
    public String SIGNATURESECRET;
    public String SIGN_KEY;

    public ApiConfig() {
        if (BuildConfig.IS_DEBUG) {
            ApiConfigDev();
        } else {
            ApiConfigProd();
        }
    }

    private void ApiConfigDev() {
        API_URL = "http://192.168.31.18:8080";
//        API_URL = "http://192.168.0.196:8080";
//        API_URL = "http://appserver.sichuangde.com";
        API_PREFIX = "/jeecg-boot";
        TOKEN_KEY = "X-Access-Token";
        SIGNATURESECRET = "dd05f1c54d63749eda95f9fa6d49v442a";
        SIGN_KEY = "X-Sign";
    }

    private void ApiConfigProd() {
        API_URL = "http://appserver.sichuangde.com";
        API_PREFIX = "/jeecg-boot";
        TOKEN_KEY = "X-Access-Token";
        SIGNATURESECRET = "dd05f1c54d63749eda95f9fa6d49v442a";
        SIGN_KEY = "X-Sign";
    }
}

